<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增项目主合同')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-contract-add">
        	<div class="form-group">
            	<label class="col-sm-2 control-label is-required">合同主体单位：</label>
            	<div class="col-sm-10">
            		<select name="ztdw" class="form-control" th:with="type=${@dict.getType('sj_gongs')}">
                    	<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                	</select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">单据编号：</label>
                <div class="col-sm-4">
                    <input name="orderNo" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">申报部门：</label>
                <div class="col-sm-4">
                    <input name="dept" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">申报人：</label>
                <div class="col-sm-4">
                    <input name="owner" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">附件数：</label>
                <div class="col-sm-4">
                    <input name="fjs" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">申报类别：</label>
                <div class="col-sm-4">
                    <select name="type" class="form-control" th:with="type=${@dict.getType('sj_contract_type')}">
                        <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                    </select>
                </div>
                <label class="col-sm-2 control-label">项目名称：</label>
                <div class="col-sm-4">
                    <input name="projectName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">合同金额：</label>
                <div class="col-sm-4">
                    <input name="htje" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">合同金额大写：</label>
                <div class="col-sm-4">
                    <input name="htjedx" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">说明：</label>
                <div class="col-sm-4">
                    <textarea name="descs" class="form-control"></textarea>
                </div>
                <label class="col-sm-2 control-label">合同对方：</label>
                <div class="col-sm-4">
                    <select id="customerName" name="customerName" class="form-control" required>
						<option th:each="cl:${clis}" th:value="${cl.name}" th:text="${cl.name}"></option>
					</select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">法务审核：</label>
                <div class="col-sm-4">
                    <input name="fwsh" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">法务审核意见：</label>
                <div class="col-sm-4">
                    <textarea name="fwshyj" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">运营中心：</label>
                <div class="col-sm-4">
                    <input name="yyzxsh" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">运营中心意见：</label>
                <div class="col-sm-4">
                    <textarea name="yyzxshyj" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">申报部门审核：</label>
                <div class="col-sm-4">
                    <input name="sbbmsh" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">申报部门审核意见：</label>
                <div class="col-sm-4">
                    <textarea name="sbbmshyj" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">项目董事：</label>
                <div class="col-sm-4">
                    <input name="xmfzrsh" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">项目董事意见：</label>
                <div class="col-sm-4">
                    <textarea name="xmfzrshyj" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">会计：</label>
                <div class="col-sm-4">
                    <input name="hjsh" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">会计意见：</label>
                <div class="col-sm-4">
                    <textarea name="hjshyj" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">副总经理：</label>
                <div class="col-sm-4">
                    <input name="fzjlsh1" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">副总经理意见：</label>
                <div class="col-sm-4">
                    <textarea name="fzjlshyj1" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">副总经理：</label>
                <div class="col-sm-4">
                    <input name="fzjlsh2" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">副总经理意见：</label>
                <div class="col-sm-4">
                    <textarea name="fzjlshyj2" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-2 control-label">总经理：</label>
                <div class="col-sm-4">
                    <input name="zjlsh" class="form-control" type="text">
                </div>
                <label class="col-sm-2 control-label">总经理意见：</label>
                <div class="col-sm-4">
                    <textarea name="zjlshyj" class="form-control"></textarea>
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-sm-offset-5 col-sm-10">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "sj/contract"
        $("#form-contract-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.saveTab(prefix + "/add", $('#form-contract-add').serialize());
            }
        }
    </script>
</body>
</html>